package com.qf.service;

import com.qf.pojo.PatientPojo;
import com.qf.utils.ResultMsg;

import javax.servlet.http.HttpServletRequest;

public interface PatientService {
    ResultMsg findAll(Integer currentPage, Integer pageSize);

    ResultMsg findAllByKeyWords(String keyWords, Integer currentPage, Integer pageSize);

    ResultMsg findAllByDoctorId(Integer userId, Integer currentPage, Integer pageSize);

    ResultMsg findAllByDate(String startTimeStr, String endTimeStr, Integer currentPage, Integer pageSize);

    ResultMsg addPatient(PatientPojo patient);

    ResultMsg modifyDoctorForPatient(String patientId, Integer userId);

    ResultMsg deletePatientByPatientId(String patientId);

    ResultMsg login(String patientName, String patientTel, HttpServletRequest request);

    ResultMsg findByDay(Integer patientStatus);

    ResultMsg findByStatus(Integer patientStatus);

    ResultMsg updatePatientStatus(String patientId);

    ResultMsg register(String patientName, String patientTel);

    ResultMsg logout(HttpServletRequest request);
}
